'use strict'

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
	const { router, controller } = app
	const { urlSysm } = app.config.baseUrl
	const subRouter = router.namespace(urlSysm + '/categorical')
	subRouter.get('/list', controller.categorical.list)
	subRouter.get('/listAll', controller.categorical.listAll)
	subRouter.get('/findLike', controller.categorical.findLike)
	subRouter.post('/add', controller.categorical.add)
	subRouter.post('/update', controller.categorical.update)
	subRouter.post('/updateList', controller.categorical.updateList)
	subRouter.post('/del', controller.categorical.del)
	// subRouter.get('/articals/:type', controller.categorical.articals)
	// subRouter.get('/detail/:id', controller.categorical.detail)
}
